<?php

namespace app\web\model;

use think\Model;

class WebExchangeModel extends Model
{
    public function add($newServerName, $oldServerName, $admin = '')
    {
        $this->data([
            'new_server_name' => $newServerName,
            'old_server_name' => $oldServerName,
            'admin_name'      => $admin
        ]);

        return $this->save();
    }
}